home *** CD-ROM | disk | FTP | other *** search
/ World of Education / World of Education.iso / world_p / pcshx10b.zip / PCSHX10B.EXE / GNUFGREP.EXE / GREPDOCS.EXE / MAKEFILE.1 < prev    next >
Text File  |  1990-08-30  |  1KB  |  52 lines

  1. # -*-Fun-*-
  2.  
  3. DEFS=
  4. CC=cl
  5. CFLAGS=-AS $(GLOB_FLAG)
  6. FOBJ=fgrep.obj kwset.obj obstack.obj std.obj getopt.obj
  7.  
  8. LDFLAGS=/NOE
  9.  
  10. # This would be the full path name of binmode.obj, if we were
  11. # using binary mode for files, but we are using text mode.
  12. # (fgrep isn't very useful on binary files.  The ``problem'' I foresee
  13. # as most difficult is the way text mode truncates files at control-Z.)
  14. BINMODE=
  15.  
  16. # Uncomment and modify these if you want to use SETARGV.OBJ
  17. # GLOB_LIB=
  18. # LIBS=
  19. # SETARGV=c:\msc\lib\setargv.obj
  20. # GLOB_FLAG=
  21.  
  22. # Uncomment these if you want to do GNU globbing of arguments
  23. GLOB_LIB=globargv.lib
  24. LIBS=$(GLOB_LIB)
  25. SETARGV=
  26. GLOB_FLAG=-DGNU_GLOBBING
  27.  
  28.  
  29. fgrep.exe: $(FOBJ) $(GLOB_LIB)
  30.     link $(LDFLAGS) $(FOBJ) $(SETARGV) $(BINMODE), $@, nul, $(LIBS);
  31.  
  32. getopt.obj: getopt.c
  33.     $(CC) $(CFLAGS) -DUSG -c getopt.c
  34.  
  35. # Order is in general significant in GLOB_OBJ
  36. GLOB_OBJ=globargv.obj glob.obj msd_dir2.obj getwd.obj
  37.  
  38. globargv.lib: $(GLOB_OBJ)
  39.     rm -f $@
  40.     lib $@ $(GLOB_OBJ), nul;
  41.  
  42. clean: FRC
  43.     rm -f fgrep.exe $(FOBJ)
  44.  
  45. FRC:
  46.  
  47. fgrep.obj: unix.h msdosmac.h
  48. kwset.obj fgrep.obj: kwset.h obstack.h std.h
  49. obstack.obj: obstack.h
  50. std.obj: std.h unix.h
  51. msd_dir2.obj glob.obj: msd_dir.h
  52.